<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use App;

class BonusPoolRecord extends Model
{

//  protected $with = ['bonus_pool_translations'];
//
//  public function getTranslation($field = '', $lang = false){
//      $lang = $lang == false ? App::getLocale() : $lang;
//      $bonus_pool_translation = $this->bonus_pool_translations->where('lang', $lang)->first();
//      return $bonus_pool_translation != null ? $bonus_pool_translation->$field : $this->$field;
//  }
//
//  public function bonus_pool_translations(){
//    return $this->hasMany(BonusPoolTranslation::class);
//  }

}
